//
//	HOME AUTOMATION GATEWAY PROJECT
//
//  (c) 2008 mocom software GmbH & Co KG
//	for European Microsoft Innovation Center
//
//  $Author: volker $
//  $Date: 2009-02-26 16:55:56 +0100 (Do, 26. Feb 2009) $
//  $Revision: 276 $
//
//  Microsoft dotNetMF Project
//  Copyright ©2001,2002,2003,2004 Microsoft Corporation
//  One Microsoft Way, Redmond, Washington 98052-6399 U.S.A.
//  All rights reserved.
//  MICROSOFT CONFIDENTIAL
//
//-----------------------------------------------------------------------------
#ifndef H_NAND_DRIVER_IF
#define H_NAND_DRIVER_IF 1

// we created a HAL IF for the NandIf!
int HALNandIfControllerInitialize();
void HALNandIfControllerReadId(unsigned *ManufacturerCode, unsigned *DeviceCode);
unsigned HALNandIfControllerEraseBlock(UINT32 Sector, UINT32 usec);
int HALNandIfControllerIsErased(UINT32 Sector);
unsigned HALNandIfControllerWriteSector(UINT32 StartSector,
										unsigned offset,
										UINT8 *pSectorData,
										unsigned Write,
										UINT32 usec,
										int fill);
unsigned HALNandIfControllerReadSector(UINT32 StartSector,
									   unsigned offset,
									   UINT8 *pSectorData,
									   unsigned Read);
unsigned HALNandIfControllerWriteSpare(UINT32 StartSector,
										UINT8 *pSpareData,
										unsigned Write,
										UINT32 usec);
unsigned HALNandIfControllerReadSpare(UINT32 StartSector,
									   UINT8 *pSpareData,
									   unsigned Read);	
									   
#endif
